﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Ent;

namespace Travel.MVC
{
    /// <summary>
    /// 视图基类
    /// </summary>
    public abstract class WebViewPageBase : System.Web.Mvc.WebViewPage
    {
        #region props
        /// <summary>
        /// 用户票据
        /// </summary>
        /// <remarks>hujiangbo,2011-4-7</remarks>
        public UserTicket CurrentUser
        {
            get
            {
                return this.ViewBag.CurrentUser;
            }
        }
        #endregion
    }

    /// <summary>
    /// 视图基类
    /// </summary>
    /// <typeparam name="TModel">视图数据模型的类型</typeparam>
    public abstract class WebViewPageBase<TModel> : System.Web.Mvc.WebViewPage<TModel>
    {
        #region props
        /// <summary>
        /// 用户票据
        /// </summary>
        /// <remarks>hujiangbo,2011-4-7</remarks>
        public UserTicket CurrentUser
        {
            get
            {
                return this.ViewBag.CurrentUser;
            }
        }

        #endregion
    }
}